#!/bin/sh
# Start/stop/restart the Freenet6 Client

# Comment this out if you don't want the client to auto-accept the server cert
AUTOACCEPT="-y"


gogoc_start() {
  /usr/bin/gogoc -b -f /etc/gogoc.conf $AUTOACCEPT
}

gogoc_stop() {
  killall gogoc
}

case "$1" in
'start')
  gogoc_start
  ;;
'stop')
  gogoc_stop
  ;;
'restart')
  gogoc_stop
  gogoc_start
  ;;
*)
  echo "usage $0 start|stop|restart"
esac

